<?
class iMVC_View_Table_Col_Action extends iMVC_View_Table_Node_Abstract{
    public $tagName='td';
    public $text;
    public $classPrefix='iweb-table-col';    
    public $url;
    public $id;

    function __construct($value,$url,$id){
        $this->text=$value; 
        $this->url=$url;
        $this->id=$id;
    
    
    }

    public function getNode($row,$col,$rs,$doc){
    
        $node=$doc->createElement($this->tagName); 
        $cNode=$doc->createElement('a');   
        $cNode->setAttribute('href',$this->url."?id=".$rs[$row][$this->id]);
        $cNode->nodeValue=$this->text;
        $node->setAttribute('class',$this->classPrefix.$row);
        $node->appendChild($cNode);

        return $node; 
    }



}


// vim600:ts=4 st=4 foldmethod=marker foldmarker=<<<,>>>
// vim600:syn=php commentstring=//%s
